<?php
namespace App\HttpController;
use EasySwoole\Socket\AbstractInterface\Controller;
class SignVali extends Controller
{
    public function index(){}
  //验证来源
  public static function  validationSign($data){
    $key= "ryFD@cNWtx8Fhyu4";
    $sign = $data['sign'];
    unset($data['sign']);
    ksort($data);
  	if($sign == md5(md5(implode(',',$data)).md5($key))){
    	return true;
    }else{
    	return false;
    }
  }

}

?>